﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using MakeIT.Deo.Negocios;

namespace MakeIT.Deo.Apresentacao
{
    public partial class Noticias1 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<noticia> listaNoticia = new NoticiaBO().RecuperaNoticia(true);
            if (listaNoticia != null && listaNoticia.Count > 6)
                listaNoticia.RemoveRange(6, listaNoticia.Count - 6);
            this.RepeaterNoticia.DataSource = listaNoticia;
            this.RepeaterNoticia.DataBind();

        }
    }
}